<{extends file="User/index.html"}>

<{block name="main"}>
<form action="./index.php?c=User&a=insert" method="post" class="h3">
    name:
    <input type="text" name="name" placeholder="请输入用户名" value="<{$data.name}>"><br><br>
    sex:
    <input type="radio" name="sex" value="0" <{if $data.sex == 0}>checked<{/if}>>保密
    <input type="radio" name="sex" value="1" <{if $data.sex == 1}>checked<{/if}>>男
    <input type="radio" name="sex" value="2" <{if $data.sex == 2}>checked<{/if}>>女<br><br>
    age:
    <input type="text" name="age" value="<{$data.age}>"><br><br>
    province:
    <select name="province">
        <option value="江苏" <{if $data.province == "江苏"}>selected<{/if}>>江苏</option>
        <option value="上海" <{if $data.province == "上海"}>selected<{/if}>>上海</option>
        <option value="北京" <{if $data.province == "北京"}>selected<{/if}>>北京</option>
        <option value="广东" <{if $data.province == "广东"}>selected<{/if}>>广东</option>
        <option value="深圳" <{if $data.province == "深圳"}>selected<{/if}>>深圳</option>
        <option value="香港" <{if $data.province == "香港"}>selected<{/if}>>香港</option>
        <option value="南京" <{if $data.province == "南京"}>selected<{/if}>>南京</option>
        <option value="澳门" <{if $data.province == "澳门"}>selected<{/if}>>澳门</option>
    </select><br><br>
    <input type="submit" value="确认添加" class="btn btn-danger btn-sm">
</form>
<{/block}>